package com.sakura.util.string;/**
 * Created by apple on 2019/8/16.
 */

import com.sakura.util.cache.Book;

import java.util.ArrayList;
import java.util.List;

/**
 * @author jixd
 * @Description
 * @Date 2019/8/16 10:43 AM
 * @Version 1.0
 **/
public class Test {
    public static void main(String[] args) {
//        String a = "abc";
//        String b = "abc";
//        b.intern();
//        System.out.println(a.hashCode());
//        System.out.println(b.hashCode());
//        System.out.println("abc".hashCode());
//
//        String x = new String("123");
//        String y = new String("123");
//        System.out.println(x.hashCode());
//        System.out.println(y.hashCode());
//        System.out.println("123".hashCode());
//
//        List list = new ArrayList();
//        for(Object obj : list){
//            System.out.println("do nothing");
//        }

        List list = new ArrayList();
        for(int i = 0;i< 100000000;i++){
            list.add(new Book("1232", "222"));
        }



    }
}
